/**
 * Copyright (c) 2025   All rights reserved.
 *
 * https://www.sdl.io
 *
 * 版权所有，侵权必究！
 */

package io.sdl.dao;

import io.sdl.common.dao.BaseDao;
import io.sdl.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户
 * 
 * @authorDc 1211734836@qq.com
 */
@Mapper
public interface UserDao extends BaseDao<UserEntity> {
    UserEntity getUserByMobile(String mobile);

    UserEntity getUserByUserId(Long userId);

    //新增用户
    int addUser(UserEntity user);

    //查询用户信息
    UserEntity findUserByOpenid(@Param("openid") String openid);

    //账号密码登录
    UserEntity passWordLogin(@Param("account") String account,@Param("password") String password);
}
